home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
tde11.arc
/
TDEFUNC.H
< prev
next >
Wrap
Text File
|
1991-09-06
|
7KB
|
194 lines
/*
* New editor name: tde, the Thomson-Davis Editor.
* Author: Frank Davis
* Date: June 5, 1991
*
* This modification of Douglas Thomson's code is released into the
* public domain, Frank Davis. You may distribute it freely.
*
* This file contains all the prototypes for every function in tde.
*/
/************************* function prototypes in block.c *************/
void mark_block( windows *, int );
void unmark_block( );
void restore_marked_block( windows *, int );
int prepare_block( windows *, text_ptr, int, int );
void pad_dest_line( windows *, file_infos *, text_ptr );
void move_copy_delete_overlay_block( windows *, int );
void load_buff( char *, text_ptr, int, int, int );
int copy_buff_2file( windows *, char *, text_ptr, int, int, int );
void block_fill( char *, int, int );
void restore_start_end( file_infos *, file_infos *, long, long, int );
void restore_cursors( file_infos *, file_infos * );
void delete_blocked_block( windows *, text_ptr, int, int, int );
void check_block( );
void find_begblock( file_infos * );
void find_endblock( file_infos * );
void block_write( windows * );
void block_print( windows * );
int get_block_fill_char( windows *, int * );
void block_expand_tabs( windows * );
/************************************************************************/
/************************* function prototypes in ed.c *****************/
void tab_key( windows * );
void insert_newline( windows *, int, int );
void insert_overwrite( windows *, int );
void join_line( windows * );
void dup_line( windows * );
void back_space( windows * );
void line_kill( windows * );
void char_del_under( windows * );
void eol_kill( windows * );
void undo_line( windows * );
void goto_left( windows * );
void goto_right( windows * );
void goto_top( windows * );
void goto_bottom( windows * );
void set_tabstop( int );
void show_line_col( windows * );
void command( windows *, int * );
void editor( int, char *[] );
/************************************************************************/
/************************* function prototypes in findrep.c ************/
int get_replacement_flags( int );
int ask_replace( windows *, int * );
void do_replace( windows *, text_ptr, int );
void find_string( windows *, int, int );
void build_boyer_array( );
text_ptr forward_boyer_moore_search( windows * );
text_ptr backward_boyer_moore_search( windows * );
void find_adjust( windows *, text_ptr );
void replace_string( windows *, int );
int replace_and_display( windows *, text_ptr, int *, int *, int );
void goto_top_file( windows * );
void goto_end_file( windows * );
text_ptr scan_forward( text_ptr, char, char );
text_ptr scan_backward( text_ptr, char, char );
void match_pair( windows * );
void goto_line( windows * );
/************************************************************************/
/************************* function prototypes in main.c **************/
void main( int, char *[] );
void error( int, int, char * );
#if defined( __MSC__ )
int interrupt far harmless( void );
#else
static int harmless( void );
#endif
void hw_xygoto( void );
void hw_terminate( void );
void hw_initialize( void );
#if defined (__MSC__)
void video_config( struct vcfg *cfg );
#endif
void set_cursor_size( int );
void hw_move( text_ptr, text_ptr, long );
int hw_fattrib( char * );
int hw_set_fattrib( char *, int );
int hw_unlink( char *, int );
int write_file( char *, char *, text_ptr, text_ptr, int, int );
int hw_save( char *, text_ptr, text_ptr, int, int );
int hw_append( char *, text_ptr, text_ptr, int, int );
int hw_print( text_ptr, text_ptr, int, int );
int hw_load( char *, text_ptr, text_ptr, text_ptr *, int );
void get_help( );
void show_credits( );
int getkey( void );
int getfunc( int );
/************************************************************************/
/************************* function prototypes in hwind.c **************/
void xygoto( int, int );
void save_screen_line( int, int, char * );
void restore_screen_line( int, int, char * );
void force_blank( void );
void initialize( void );
void show_end_mem( void );
void show_end_text( windows * );
void show_modes( void );
void show_file_count( int );
void show_avail_mem( );
void show_indent_mode( );
void show_search_case( );
void terminate( void );
void window_scroll_up( int, int );
void window_scroll_down( int, int );
void window_scroll_up_eof( int, int );
void combine_strings( char *, char *, char *, char * );
/************************************************************************/
/************************* function prototypes in utils.c **************/
int myisalnum( int );
void check_virtual_col( windows *, int, int );
void copy_line( text_ptr, int );
void un_copy_line( text_ptr, windows *, int );
int load_file( char * );
void set_prompt( char *, int );
int get_name( char *, int, char *, int );
int get_yn( void );
int get_oa( void );
void display_current_window( windows * );
void redraw_screen( windows * );
void redraw_current_window( windows * );
void show_changed_line( windows * );
void dup_window_info( windows *, windows * );
void addorsub_all_cursors( windows *, long );
void adjust_windows_cursor( windows *, int );
void adjust_start_end( file_infos *, long );
int first_non_blank( char * );
void page_up( windows * );
void page_down( windows * );
void scroll_down( windows * );
void scroll_up( windows * );
void save_file( windows * );
void save_as_file( windows * );
void show_window_header( char *, windows * );
void show_size_name( windows * );
void show_size( windows * );
void quit( windows *, int * );
void move_up( windows * );
void move_down( windows * );
void move_left( windows * );
void move_right( windows * );
void word_left( windows * );
void word_right( windows * );
/************************************************************************/
/************************* function prototypes in window.c *************/
int initialize_window( );
void new_window( char *, windows * );
void choose_window( char *, windows * );
void next_window( windows * );
void prev_window( windows * );
void split_screen( windows * );
void size_window( windows * );
void setup_window( windows * );
void finish( windows *, int * );
int create_window( windows **, int, int, file_infos * );
int edit_file( char * );
void edit_another_file( windows * );
/************************************************************************/
/************************* function prototypes in tdeasm.c *************/
text_ptr cpf( text_ptr );
text_ptr cpb( text_ptr );
unsigned long ptoul( text_ptr );
text_ptr nptop( text_ptr );
text_ptr addltop( long, text_ptr );
int find_CONTROL_Z( text_ptr );
int linelen( text_ptr );
int prelinelen( text_ptr );
text_ptr find_next( text_ptr );
text_ptr find_prev( text_ptr );
void update_line( windows * );
void update_char( windows *, int, int, int );
void c_output( int, int, int, int );
void s_output( char *, int, int, int );
void eol_clear( int, int, int );
/*****************************************************/